import axios from "../index.js";
// 应急事件保存
export const SaveEmergencyEvent = (data) => {
  return axios.request({
    url: "/emergency/emergencyEvent/save",
    method: "post",
    data: data
  });
};
// 应急事件查询
export const listPageEmergencyEvent = (data) => {
  return axios.request({
    url: "/emergency/emergencyEvent/listPage",
    method: "post",
    data: data
  });
};
// 应急事件详情
export const EmergencyEventgetById = (data) => {
  return axios.request({
    url: "/emergency/emergencyEvent/getById",
    method: "get",
    data: data
  });
};
// 应急事件删除多个
export const EmergencyEventgetdeleteByIds = (data) => {
  return axios.request({
    url: "/emergency/emergencyEvent/deleteByIds",
    method: "post",
    data: data
  });
};
// 应急事件删除
export const EmergencyEventgetdeleteById = (data) => {
  return axios.request({
    url: "/emergency/emergencyEvent/deleteById",
    method: "post",
    data: data
  });
};
// 应急事件报送
export const EmergencyEventgetSubmit = (data) => {
  return axios.request({
    url: "/emergency/emergencyEvent/submit",
    method: "post",
    data: data
  });
};
// 应急事件修改
export const EmergencyEventgetUpdById = (data) => {
  return axios.request({
    url: "/emergency/emergencyEvent/updById",
    method: "post",
    data: data
  });
};
// 应急事件转响应通知单
export const EmergencyEventgetChangeResponseData = (data) => {
  return axios.request({
    url: "/emergency/emergencyEvent/changeResponseData",
    method: "post",
    data: data
  });
};
// 时间轴应急事件
export const getFlowList = (data) => {
  return axios.request({
    url: "/emergency/warningFlow/getFlowList",
    method: "get",
    data: data
  });
};
// 首页柱状图饼图
export const getStatistics = (data) => {
  return axios.request({
    url: "/emergency/eventHomePage/getStatistics",
    method: "get",
    data: data
  });
};
// 首页组织机构树
export const getHomePageEventTree = (data) => {
  return axios.request({
    // url: "/system/organization/getOrganizationChildren",
    url: "/system/organization/getHomePageInfo",
    method: "get",
    data: data
  });
};
// 地图
export const getAlreadyIssue = (data) => {
  return axios.request({
    url: "/emergency/eventHomePage/getAlreadyIssue",
    method: "get",
    data: data
  });
};
// 首页下拉框
export const getResourceLevelCity = (data) => {
  return axios.request({
    url: "/system/organization/getResourceLevelCity",
    method: "get",
    data: data
  });
};
// 首页下拉框
export const getLevelCitys = (data) => {
  return axios.request({
    url: "/system/organization/getLevelCitys",
    method: "get",
    data: data
  });
};
